<div class="col-sm-12 col-md-12" ng-show="pageView == 0">

	<div class="row">
		<div class="col-sm-12 col-md-12">
			<form class="form-custom clearfix">
				<div class="col-sm-2 col-md-2">
					<label> 数据类型</label>
					<select class="form-control" ng-model="params.dataSourceType" ng-change="refresh('first' , true)">
						<option value="sysj">实验数据</option>
						<option value="jksj">接口数据</option>
					</select>
				</div>
				<div class="col-sm-2 col-md-2">
					<label>数据名称</label>
					<input class="form-control" type="text" ng-model="params.dataSetName" />
				</div>
				<div class="col-sm-2 col-md-2" ng-if="params.dataSourceType=='sysj'">
					<label> 数据结构定义</label>
					<select class="form-control" select2 data-live-search="true" ng-model="params.dataDefId"
						ng-options="item.dataDefId as item.dataDefName for item in defs">
						<option value="">请选择</option>
					</select>
				</div>
				<div class="col-sm-2 col-md-2" ng-if="params.dataSourceType=='jksj'">
					<label> 系统</label>
					<select class="form-control" select2 data-live-search="true" ng-model="params.sysCode"
						ng-options="item.portcode as item.name for item in codes">
						<option value="">请选择</option>
					</select>
				</div>
				<div class="col-sm-3 col-md-3">
					<label>执行日期</label>
					<div data-datetimepicker="range" range start="params.startTime" end="params.endTime"></div>
				</div>
				<div class="col-sm-2 col-md-2">
					<label>&nbsp;</label>
					<button class="btn btn-info btn-custom" type="button" ng-click="refresh('first' , true)">查询</button>
					<button class="btn btn-info btn-custom" type="button" ng-click="resetQuery()">重置</button>
				</div>
			</form>
		</div>

	</div>

	<table class="table table-striped table-bordered table-condensed index-center  table-costom">
		<thead>
			<tr>
				<th>序号</th>
				<th>数据名称</th>
				<th ng-if="params.dataSourceType=='sysj'">数据结构定义</th>
				<th ng-if="params.dataSourceType=='jksj'">表名</th>
				<th ng-if="params.dataSourceType=='jksj'">系统名</th>
				<th>数据量</th>
				<th class="col-datetime-1">创建时间</th>
				<th class="col-datetime-1">执行时间</th>
				<th class="col-span-100">报告状态</th>
				<th class="col-opt-1">操作</th>
			</tr>
		</thead>
		<tbody>
			<tr class="rowlink" ng-repeat="item in limitArr">
				<td>{{pageCurrent*limit+$index+1}}</td>
				<td>{{item.dataSetName}}</td>
				<td ng-if="params.dataSourceType=='sysj'">{{item.dataDefName}}</td>
				<td ng-if="params.dataSourceType=='jksj'">{{item.tableName}}</td>
				<td ng-if="params.dataSourceType=='jksj'">{{item.systemName}}</td>
				<td>{{item.dataAmount}}</td>
				<!-- 				<td>{{item.createUserName}}</td> -->
				<td>{{item.createDate|date:'yyyy-MM-dd HH:mm'}}</td>
				<td>{{item.evaluateDate|date:'yyyy-MM-dd HH:mm'}}</td>
				<td>{{item.evaluateState|DP_assess}}</td>
				<td><span ng-if="item.dataAmount"><a href="javascript:" ng-click="detail(item)"
							ng-if="item.evaluateState=='finished'">查看</a> <a href="javascript:" ng-click="excute(item)" ng-if="params.dataSourceType=='sysj'">执行</a></span></td>
			</tr>
		</tbody>
	</table>

	<div data-remote-paging="pager" data-params="params" data-refresh="refresh" data-current="pageCurrent"
		data-total="total" data-data="limitArr" data-limit="limit"></div>
</div>

<div ng-include="'templates/dataIntegration/assessment-extends.html'"></div>